package com.bjsxt.service.impl;

import com.bjsxt.mapper.EmpMapper;
import com.bjsxt.pojo.Emp;
import com.bjsxt.service.EmpService;
import com.netflix.discovery.converters.Auto;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class EmpServiceImpl implements EmpService {
    @Autowired
    private EmpMapper empMapper;
    @Override
    public int insert(Emp emp) {
        return empMapper.insert(emp);
    }

    @Override
    public List<Emp> selectAll() {
        return empMapper.selectAll();
    }
}
